package com.example.configdemo.controller;

import com.example.configdemo.bean.ListConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/*
 * @author zzr
 * @date: 2025/09/19  10:51
 * @description:
 */
@RestController
public class ListController {
    @Autowired
    private ListConfig listConfig;

    @RequestMapping("/readlist")
    public String read() {
        return listConfig.toString();
    }
}
